package com.czy.workflow.core.exception;

import com.czy.workflow.core.model.TaskInfo;

public class FlowException extends Exception{

    TaskInfo taskInfo;

    public FlowException(String message) {
        super(message);
    }

    public FlowException(TaskInfo taskInfo, String message) {
        super(message);
        this.taskInfo = taskInfo;
    }

    public TaskInfo getTaskInfo() {
        return taskInfo;
    }

    public void setTaskInfo(TaskInfo taskInfo) {
        this.taskInfo = taskInfo;
    }
}
